layui.define(['table', 'jquery', 'element'], function (exports) {
    "use strict";

    var MOD_NAME = 'pearLayer',
        $ = layui.jquery;

    var pearLayer  =new function () {

        this.success = function(msg,callback){
            layer.msg(msg,{icon:1,time:1200},callback);
        }

        this.failure = function(msg,callback){
            layer.msg(msg,{icon:2,time:1200},callback);
        }

    };

    exports(MOD_NAME,pearLayer);
})